package com.jj.controller;

import com.jj.service.DemoService01;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController01 {

    @Autowired
    private DemoService01 demoService;
    @RequestMapping("/demo01")
    public String demo(){
        return demoService.demo("你好？");
    }
    @RequestMapping("/getInfo01")
    public String getInfo(String name,int age){
        return "server1:getInfo:"+"name:"+name+",age:"+age;
    }
}
